﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="NetDon.OA.Portal.Default" %>

<%@ Register TagPrefix="vs" Namespace="NetDon.WebControls" Assembly="NetDon.WebControls" %>
<%@ Import Namespace="NetDon.OA.Business" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>祥狮物流干线流程管理系统</title>
    <script src="./Javascripts/jquery.js" type="text/javascript"></script>
    <style type="text/css">
        html, body
        {
            background-color: #016aa9;
            text-align: center;
            margin: 0 auto;
            padding: 0;
            font-size: 9pt;
            height: 100%;
            width: 100%;
            overflow: hidden;
            font-family: "宋体" , Arial, Helvetica, sans-serif;
        }
    </style>
    <script type="text/javascript">

        function pageLoad() {
            if (window.top.location != window.location) {
                window.top.location = window.location;
                return;
            }
            layout();
            $(window).resize(layout);
        }

        function layout() {
            var bounds = $common.getClientBounds();
            $('.fullWidth').width(bounds.width);
            var node = $get('fullHeight');
            var height = bounds.height;
            Array.forEach($array(node.parentNode.childNodes), function (item) {
                if (item.nodeType == Page.NodeType.element && item != node) {
                    height -= $common.getSize(item).height;
                }
            });
            $(node).height(height);
            Array.forEach($array(node.childNodes), function (item) {
                $(item).height(height);
            });
            $('#frameWorkSpace').width($('#fullHeight').width() - $('.menu').width());
            $('.menu').height($('#fullHeight').height());
        }
        $(document).ready(
	function () {
	  
	    $("#liToogleDisplay").hover(function () {
	        $(".left_nav").toggle();
	        layout();

	    });
	});        

 
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
        <CompositeScript>
            <Scripts>
                <asp:ScriptReference Name="AjaxControlToolkit.Common.Common.js" Assembly="AjaxControlToolkit" />
                <asp:ScriptReference Name="AjaxControlToolkit.Compat.Timer.Timer.js" Assembly="AjaxControlToolkit" />
                <asp:ScriptReference Name="AjaxControlToolkit.ExtenderBase.BaseScripts.js" Assembly="AjaxControlToolkit" />
                <asp:ScriptReference Name="NetDon.WebControls.Page.js" Assembly="NetDon.WebControls" />
            </Scripts>
        </CompositeScript>
    </asp:ScriptManager>
    <%if (false)
      { %>
    <script type="text/javascript" src="Javascripts/jquery-1.3.2-vsdoc2.js"></script>
    <%} %>
    <div class="bodyMain">
        <div class="Banner fullWidth">
            <div class="Logo">
                <asp:Label ID="Label1" runat="server" Text="欢迎您,"></asp:Label>
                <asp:Label ID="lblUserName" runat="server" Text=""></asp:Label>.&nbsp;&nbsp;今天是<%= DateTime.Today.ToString("yyyy年MM月dd日") %>
            </div>
        </div>
        <div class="TopMenu fullWidth">
            <div class="Left">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <ul>
                            <%--  <li>
                        <asp:HyperLink ID="lbtnMailCount" runat="server" NavigateUrl='~/Mail_VG/EmailManagement/EmailInbox.aspx'
                            Target="WorkSpace">
                            <asp:Image ID="imgSMS" runat="server" SkinID="sms" /></asp:HyperLink></li>--%>
                            <li style="cursor: pointer" id="liToogleDisplay">
                                <asp:Image ID="imgApprove" runat="server" SkinID="approve" />关闭侧边栏</li>
                            <li>当前业务：
                                <asp:RadioButton runat="server" AutoPostBack="True" Text="A" GroupName="BusinessType"
                                    Checked="true" ID="radioBusinesTypeA" OnCheckedChanged="radioBusinesType_CheckedChanged" />
                                <asp:RadioButton runat="server" AutoPostBack="True" Text="B" GroupName="BusinessType"
                                    ID="radioBusinesTypeB" OnCheckedChanged="radioBusinesType_CheckedChanged" />
                                <asp:RadioButton runat="server" AutoPostBack="True" Text="全部" GroupName="BusinessType"
                                    ID="radioBusinesTypeAll" OnCheckedChanged="radioBusinesType_CheckedChanged" />
                            </li>
                        </ul>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
            <div class="Right">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <ul>
                                <li><span>当前区域：<%=( CurrentApplicationContext as OApplicationContext).CompanyName %></span></li>
                                <li>
                                    <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/MyHome.aspx" Target="WorkSpace"
                                        CssClass="Linker">
                            <span>我的首页</span></asp:HyperLink></li>
                                <li>
                                    <asp:HyperLink ID="hypeMyProfile" runat="server" NavigateUrl="~/Admin/MyProfile.aspx"
                                        Target="WorkSpace" CssClass="Linker">
                            <span>我的信息</span></asp:HyperLink></li>
                                <li>
                                    <asp:HyperLink ID="hypeChangePassword" runat="server" NavigateUrl="~/Admin/ChangePassword.aspx"
                                        Target="WorkSpace" CssClass="Linker">
                            <span>密码修改</span></asp:HyperLink></li>
                                <li>
                                    <asp:LinkButton ID="btnLogout" runat="server" OnClick="btnLogout_Click" CssClass="Linker">
                              <%--  <asp:Image ID="imgLogout" runat="server" SkinID="Logout" />--%>
                                
                                &nbsp;&nbsp;退&nbsp;&nbsp;出</asp:LinkButton>
                                </li>
                            </ul>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="blank13">
        </div>
        <div class="fullWidth fullHeight" id="fullHeight">
            <table border="0" cellpadding="0" cellspacing="0" style="float: left;" class="left_nav">
                <tr>
                    <td valign="top">
                        <asp:Panel CssClass="menu" runat="server" ID="panelMenu">
                            <div class="menuContainer">
                                <asp:Repeater runat="server" ID="rptMenu" OnItemDataBound="rptMenu_ItemDataBound">
                                    <ItemTemplate>
                                        <asp:Panel ID="panelModule" runat="server" CssClass="menuModule">
                                            <asp:Panel ID="panelModuleTitle" runat="server" CssClass="menuModuleTitle">
                                                <div>
                                                    <%# Server.HtmlEncode(Convert.ToString(Eval("Name")))%>
                                                </div>
                                            </asp:Panel>
                                            <asp:CollapsiblePanelExtender ID="cpeMenuItem" runat="server" TargetControlID="panelMenuItems"
                                                ExpandDirection="Vertical"  Collapsed="False" CollapseControlID="panelModuleTitle" 
                                                ExpandControlID="panelModuleTitle" SuppressPostBack="true">
                                            </asp:CollapsiblePanelExtender>
                                            <asp:Panel ID="panelMenuItems" runat="server" CssClass="menuModuleChildren">
                                                <asp:Repeater runat="server" ID="rptChildren">
                                                    <ItemTemplate>
                                                        <div class="menuItem">
                                                            <div>
                                                                <asp:HyperLink ID="Label1" runat="server" Text='<%# Eval("Name") %>' NavigateUrl='<%# Eval("NavigateUrl") %>'
                                                                    Target="WorkSpace"></asp:HyperLink>
                                                            </div>
                                                        </div>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </asp:Panel>
                                        </asp:Panel>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </div>
                        </asp:Panel>
                    </td>
                </tr>
            </table>
            <vs:ScrollbarExtender runat="server" ID="PanelMenuScrollbarExtender" TargetControlID="panelMenu">
            </vs:ScrollbarExtender>
            <iframe id="frameWorkSpace" name="WorkSpace" frameborder="0" marginheight="0" marginwidth="0"
                scrolling="no" runat="server" src="MyHome.aspx"></iframe>
        </div>
        <div class="fullWidth PageFooter"  style="clear: both">
            <span class="footleft"></span><span>Copyright &copy 2003 -
                <%# Server.HtmlEncode(Convert.ToString(Eval("Name")))%>Corp. All Rights Reserved.
                Supported by NetDon Software & Technology Co.,Ltd. </span>
        </div>
    </div>
    </form>
</body>
</html>
